package com.mspbots.core.teams.service;

import com.mspbots.core.DefaultBaseService;
import com.mspbots.core.teams.model.TeamsUser;

import java.util.Collection;
import java.util.List;

public interface TeamsUserService extends DefaultBaseService<TeamsUser> {

    Collection<TeamsUser> selectAllByTenantId(long tenantId);

    /**
     * teams user id  find
     *
     * @param teamsUserId teams user id
     * @return teams user
     */
    TeamsUser selectByTeamsUserId(String teamsUserId);

    /**
     * 增加teams 用户 ，自动映射用户。
     *
     * @param users
     */
    List<TeamsUser> addBatch(Long tenantId, List<TeamsUser> users);

    /**
     * automatically mapping teams user and cw user
     *
     * @param tenantId
     * @return
     */
    Boolean autoMapping(Long tenantId);

    List<TeamsUser> findAdminByTenantId(long tenantId);
}
